import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
const path = require('path');

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [vue()],
	base: './',
	resolve: {
		// 配置路径别名
		alias: {
			'@src': path.resolve(__dirname, './src'),
		},
	},

	build: {
		chunkSizeWarningLimit: 99999999,
		outDir: 'build',
	},
	server: {
		host: '0.0.0.0',
		proxy: {
			'/api1': 'http://218.59.142.130:13036',
			'/api2': 'http://localhost:8080',
		},
	},
});
